<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="/car/toAdd">增加</a>
<table border="1px" width="100%">
    <tr>
        <td>id</td>
        <td>汽车名字</td>
        <td>操作</td>
    </tr>
    <tr th:each="car : ${carList}">
        <td>[[${car.carId}]]</td>
        <td>[[${car.carName}]]</td>
        <td><a th:href="@{/car/toUpdate(carId=${car.carId})}">修改</a>
            <a th:href="@{/car/deleteById(carId=${car.carId})}">删除</a>
        </td>
    </tr>
</table>
</body>
</html>